﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CalculatorApi.Core.Services;
using TechTalk.SpecFlow;

namespace CalculatorApi.Stories.Steps
{
    [Binding]
    public class MultiplySteps
    {
        [Given(@"It gets (.*) as a parameter to the MultiplyMethod")]
        public void GivenItGetsAsAParameterToTheMultiplyMethod(decimal p0)
        {
            var calculator = ScenarioContext.Current.Get<CalculatorService>();
            calculator.Multiply(p0);
        }

    }
}
